home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / 3D Buttons CDEF 1.0b6 / Source / 3D Buttons CDEF source / (3D CDEF++.68k.π) / StSaveEm.h < prev    next >
Text File  |  1994-12-28  |  548b  |  37 lines

  1. /*
  2.     Public domain by Zig Zichterman.
  3. */
  4. /*
  5.     StSaveEm
  6.     
  7.     A class that saves the following on construction and restores on
  8.     destruction:
  9.         •    clip region (StSaveClip)
  10.         •    text state (StSaveText)
  11.         •    pen state (StSavePen)
  12.         •    color (StSaveColor)
  13.     
  14.     12/27/94    zz    h    initial write
  15. */
  16. #pragma once
  17.  
  18. #include "StSaveClip.h"
  19. #include "StSaveColor.h"
  20. #include "StSavePen.h"
  21. #include "StSaveFont.h"
  22.  
  23. class StSaveEm
  24. {
  25.     public :
  26.         void
  27.         Save(void);
  28.         
  29.         void
  30.         Restore(void);
  31.         
  32.         StSaveClip    mClip;
  33.         StSaveFont    mText;
  34.         StSavePen    mPen;
  35.         StSaveColor    mColor;
  36. };
  37.